public class TextDemo {
    public static void main(String[] args) {
        //判断一个数的奇偶性
        int num=10;
        if(num % 2 == 0) {
            System.out.println("num是偶数");
        }else {
            System.out.println("num是奇数");
        }
        //判断一个数是正数、负数还是0
        int num1=20;
        if(num1>0) {
            System.out.println("num1是正数");
        }
        else if(num1<0){
            System.out.println("num1是负数");
        }
        else {
            System.out.println("0");
        }
    }

}
